import 'package:flutter/material.dart';
import 'package:flutter_screenutil/flutter_screenutil.dart';
import 'package:get/get.dart';
import 'package:yi_shop/utils/colors.dart';
import 'package:yi_shop/utils/styles.dart';
import 'package:yi_shop/utils/tools.dart';

class LuckyRuleController extends GetxController {}

class LuckyRulePage extends GetView<LuckyRuleController> {
  const LuckyRulePage({super.key});

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      backgroundColor: ColorsUtils.backgroundColor,
      appBar: AppBar(
        leading: ToolsUtils.builderLeading(),
        title: Text(
          '抽奖规则说明',
          style: StylesUtils.customTextStyle(
              fontSize: StylesUtils.fontSize18, fontWeight: FontWeight.w700),
        ),
      ),
      body: SingleChildScrollView(
        child: Column(
          children: [
            Container(
              margin: const EdgeInsets.only(top: 30),
              alignment: Alignment.center,
              child: SizedBox(
                width: 318.w,
                child: Column(
                  children: [
                    Container(
                      alignment: Alignment.centerLeft,
                      child: Text(
                        '1、普通会员、黄金会员每天有1次免费抽奖机会，铂金会员、钻石会员每天有两次免费抽奖机会；',
                        style: StylesUtils.customTextStyle(
                            color: ColorsUtils.color3333, lineHeight: 1.3.h),
                      ),
                    ),
                    Container(
                      margin: const EdgeInsets.only(top: 10),
                      alignment: Alignment.centerLeft,
                      child: Text(
                        '2、每5个贡献值可获得一次抽奖机会，每天最对10次；',
                        style: StylesUtils.customTextStyle(
                            color: ColorsUtils.color3333, lineHeight: 1.3.h),
                      ),
                    ),
                    Container(
                      alignment: Alignment.centerLeft,
                      margin: const EdgeInsets.only(top: 10),
                      child: Text(
                        '3、幸运抽奖按照85%中奖概率随机出奖，奖品包括成优惠券、成长值、贡献值；',
                        style: StylesUtils.customTextStyle(
                            color: ColorsUtils.color3333, lineHeight: 1.3.h),
                      ),
                    ),
                    Container(
                      alignment: Alignment.centerLeft,
                      margin: const EdgeInsets.only(top: 10),
                      child: Text(
                        '4、相关奖品将直接发送至您的账户中，您可以在中奖记录中查询相关信息；',
                        style: StylesUtils.customTextStyle(
                            color: ColorsUtils.color3333, lineHeight: 1.3.h),
                      ),
                    ),
                    Container(
                      alignment: Alignment.centerLeft,
                      margin: const EdgeInsets.only(top: 10),
                      child: Text(
                        '5、所有奖品均不提供退换货、折线服务；',
                        style: StylesUtils.customTextStyle(
                            color: ColorsUtils.color3333, lineHeight: 1.3.h),
                      ),
                    ),
                    Container(
                      alignment: Alignment.centerLeft,
                      margin: const EdgeInsets.only(top: 10),
                      child: Text(
                        '4、幸运抽奖奖品及服务仅由本平台提供，解释权归本平台所有；',
                        style: StylesUtils.customTextStyle(
                            color: ColorsUtils.color3333, lineHeight: 1.3.h),
                      ),
                    ),
                    Container(
                      alignment: Alignment.centerLeft,
                      margin: const EdgeInsets.only(top: 10),
                      child: Text(
                        '5、所有奖品可在中奖记录查看。',
                        style: StylesUtils.customTextStyle(
                            color: ColorsUtils.color3333, lineHeight: 1.3.h),
                      ),
                    )
                  ],
                ),
              ),
            )
          ],
        ),
      ),
    );
  }
}
